package cn.peach.hrm;

import cn.peach.hrm.exception.GlobalExceptionHandler;
import cn.peach.hrm.interceptor.DefaultOAuth2FeignRequestInterceptor;
import cn.peach.hrm.interceptor.FeignHystrixConcurrencyStrategy;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

/**
 * @author you
 */
@SpringBootApplication
@EnableEurekaClient
@EnableCaching
@Import({ GlobalExceptionHandler.class ,
        DefaultOAuth2FeignRequestInterceptor.class ,
        FeignHystrixConcurrencyStrategy.class})
@EnableFeignClients({"cn.peach.hrm.feign.client"})
public class CourseApplication {
    public static void main(String[] args) {
        SpringApplication.run(CourseApplication.class);
    }
}
